package edu.ynu.se.xiecheng.achitectureclass.service;

import edu.ynu.se.xiecheng.achitectureclass.dto.UserLoginDTO;
import edu.ynu.se.xiecheng.achitectureclass.dto.UserRegisterDTO;
import edu.ynu.se.xiecheng.achitectureclass.entity.User;

public interface UserService {
    /**
     * 用户注册
     */
    User register(UserRegisterDTO registerDTO);

    /**
     * 用户登录
     */
    String login(UserLoginDTO loginDTO);

    /**
     * 根据用户名查找用户
     */
    User findByUsername(String username);
} 